package com.hctforgreen.greenservice.examine;

import java.util.List;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.GridView;
import android.widget.ImageButton;
import android.widget.TextView;

import com.hctforgreen.greenservice.ParentActivity;
import com.hctforgreen.greenservice.R;
import com.hctforgreen.greenservice.model.AllExamListEntity;
import com.hctforgreen.greenservice.model.AllExamListEntity.ExamEntity;
import com.hctforgreen.greenservice.ui.adapter.NotYetListAdapter;
import com.hctforgreen.greenservice.utils.HctConstants;

/**
 * 查看答题情况（正确或错误）
 * 
 * @author Tallen Zhai
 * 
 */
public class SeeWrongActivity extends ParentActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.see_not_yet_activity);
		Intent intent = getIntent();
		AllExamListEntity listEntity = (AllExamListEntity) intent
				.getSerializableExtra(HctConstants.ON_ACTIVITY_KEY_ALL_EXAM_LIST_ENTITY);
		initTitleButtonBar();
		initFinshExamineActivityReceiver();
		initWindow(listEntity.dataList);
	}

	private void initTitleButtonBar() {
		final TextView titleTv = (TextView) findViewById(R.id.tv_title);
		titleTv.setText(getString(R.string.train_examine));

		final ImageButton backBtn = (ImageButton) findViewById(R.id.btn_back);
		backBtn.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
		// InitTitle.initTitle(this, R.drawable.btn_reback, "查看未做", 0,
		// new OnClickListener() {
		// @Override
		// public void onClick(View v) {
		// finish();
		// }
		//
		// }, null);
	}

	private void initWindow(List<ExamEntity> dataList) {
		GridView notYetGv = (GridView) findViewById(R.id.gv_not_yet);
		// new NotYetListAdapter(this, notYetGv, dataList);
	}
}
